package com.fantastic.service.zjs;

import com.fantastic.model.pojo.zjs.VarietySpecType;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: rxx
 * @since: 2024/5/30 18:36
 * @description: 菜品信息和菜品规格类型关联表service层接口
 */

public interface VarietySpecTypeService {
    /**
     * 查询
     *
     * @param varietySpecType
     * @return
     */
    List<VarietySpecType> listVarietySpecType(VarietySpecType varietySpecType);

    /**
     * 查询单个
     *
     * @param varietyId
     * @param specTypeId
     * @return
     */
    VarietySpecType getVarietySpecType(Integer varietyId, Integer specTypeId);

    /**
     * 添加
     *
     * @param varietySpecType
     * @return
     */
    Integer insertVarietySpecType(VarietySpecType varietySpecType);

    /**
     * 批量添加
     * @param varietySpecType
     * @return
     */
    Integer insertVarietySpecTypes(ArrayList<VarietySpecType> varietySpecType);

    /**
     * 删除
     *
     * @param varietyId
     * @param specTypeId
     * @return
     */
    Integer deleteVarietySpecType(Integer varietyId, Integer specTypeId);

    /**
     * 批量删除
     * @param varietyId
     * @param specTypeId
     */
    Integer deleteVarietySpecTypes(@Param("varietyId") Integer[] varietyId, @Param("specTypeId") Integer[] specTypeId);

}
